home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 3 / Cream of the Crop 3.iso / lan / apinst.zip / APPF.R < prev    next >
Text File  |  1994-03-17  |  4KB  |  133 lines

  1. resource URES_TYPE_INSTANCE(APP_ID)
  2. {
  3.     /* options, native ref, default font, device type, extra */
  4.     UR_UNITS_CHARS | UR_RECT_FRAME, DataNone{}, DataFont{ "MS Sans Serif", 8, UR_BOLD}, N_NULL, {},
  5.  
  6.     {
  7.                 InstApplication
  8.                 {
  9.                         /* native key, resource options, childcount */
  10.                         0, UR_RECT_CONTENT, 0,
  11.                         /* action code, action params, user data, buf size, buf data, filter */
  12.                         N_NULL, DataNone {}, N_NULL, 0, DataNone {},
  13.             /* Filter */
  14.             Filt {UINST_FOPT_VECTOR, 
  15.                 { N_NULL, 
  16.                    N_NULL, 
  17.                    N_NULL }, 
  18.                 { UINST_F0_CREATE|UINST_F0_ACTION, 
  19.                   N_NULL, 
  20.                    N_NULL },
  21.                  "AppVector" }, 
  22.                         /* item type, data, attrs */
  23.             TypeID{UITEM_ID_BASEFONT}, DataStr{ "Application Instance" }, AttrsNone{},
  24.                         /* Virtual Data */
  25.             VirtNone{},
  26.                         /* style, options, alignment */
  27.             UINST_STYLE_SHOW|UINST_STYLE_CLOSEABLE|UINST_STYLE_ICONIZEABLE|UINST_STYLE_SIZEABLE,
  28.                         N_NULL, N_NULL, N_NULL, N_NULL,
  29.             /* frame, selection, mnemonic, cursor */
  30.                         RectNone , SelNone {}, MnNone {}, DataStd {URES_STD_ARROW_CURS},
  31.             /* help desc, help topic, extra */
  32.             HelpNone{}, HelpNone{}, {},
  33.             /* icon, menu bar, window menu position, size information */
  34.             DataRef {"",URES_TYPE_ICON, APP_ICON,N_NULL},
  35.                         DataRef {"",URES_TYPE_INSTANCE, APP_MENU, N_NULL}, N_NULL, SizeNone {},
  36.                         /* foreground timer intervals, background timer intervals, help config structure, extra */
  37.                         0, 0, HelpConfigNone {}, {}
  38.                 },
  39.         }
  40. };
  41.  
  42. resource URES_TYPE_INSTANCE(APP_MENU)
  43. {
  44.     /* options, native ref, default font, device type, extra */
  45.     N_NULL, DataNone{ }, DataNone{ }, N_NULL, { },
  46.     {
  47.         InstMenu
  48.         {
  49.             0, N_NULL, 0,    /* native key, resource options, element count  */
  50.             
  51.             /* action code, action params, userdata, bufsize, bufdata, filter  */
  52.             
  53.             N_NULL, DataNone{ }, N_NULL, 0, DataNone{ }, FiltNone{ },
  54.             
  55.             /* item type, data, attrs, virtual init  */
  56.             
  57.             TypeID{ UITEM_ID_BASEFONT }, DataNone{ }, AttrsNone{ }, VirtNone{ },
  58.             
  59.             /* style, style2, options, options2, alignment  */
  60.             
  61.             UINST_STYLE_SHOW | UMENU_STYLE_BAR | UINST_STYLE_ACT_APP, N_NULL,
  62.             N_NULL, N_NULL,
  63.             N_NULL,
  64.             
  65.             /* frame, selection, mnemonic, cursor, extra  */
  66.             
  67.             RectNone, SelNone{ }, MnNone{ }, DataNone{ },
  68.             
  69.             /* help desc, help topic, extra  */
  70.  
  71.             HelpNone{ }, HelpNone{ }, { },
  72.         
  73.             /* title type, data, attrs  */
  74.             
  75.             TypeID{ UITEM_ID_BASEFONT }, DataNone{ }, AttrsNone{ },
  76.             
  77.             /* UMenuInfo.flStyle, flDefElemStyle, sGridRows, sGridCols, extra  */
  78.             
  79.             N_NULL, N_NULL, 0, 0, { }
  80.         },
  81.  
  82.         InstMenu
  83.         {
  84.             0, N_NULL, 1,    /* native key, resource options, element count  */
  85.             
  86.             /* action code, action params, user data, buf size, buf data, filter  */
  87.             
  88.             N_NULL, DataNone{ }, N_NULL, 0, DataNone{ }, FiltNone{ },
  89.             
  90.             /* item type, data, attrs  */
  91.             
  92.             TypeID{ UITEM_ID_BASEFONT }, DataNone{ }, AttrsNone{ }, VirtNone{ },
  93.             
  94.             /* style, style2, options, options2, alignment  */
  95.             
  96.             UINST_STYLE_SHOW | UMENU_STYLE_CASCADE | UINST_STYLE_ACT_APP, N_NULL,
  97.             N_NULL, N_NULL,
  98.             N_NULL,
  99.             
  100.             /* frame, selection, mnemonic, cursor, extra  */
  101.             
  102.             RectNone, SelNone{ }, MnChar {'F' }, DataNone{ },
  103.             
  104.             /* help desc, help topic, extra  */
  105.  
  106.             HelpNone{ }, HelpNone{ }, { },
  107.  
  108.             /* title type, data, attrs  */
  109.             
  110.             TypeID{ UITEM_ID_BASEFONT }, DataStr{ "File" }, AttrsNone{ },
  111.             
  112.             /* UMenuInfo.flStyle, flDefElemStyle, sGridRows, sGridCols, extra  */
  113.             
  114.             N_NULL, N_NULL, 0, 0, { }
  115.         },
  116.         InstMenuItem
  117.         {
  118.             0, N_NULL,    /* native key, resource options  */
  119.             
  120.             APP_MENU_CLOSE, DataNone{ }, DataStr{ MENU_APP_QUIT_STR }, AttrsNone{ },
  121.  
  122.             /* style, map key code, map key modifiers, mnemonic, extra  */
  123.             
  124.             UMENU_ELEM_PUSH, MENU_APP_QUIT_MAPCODE, MENU_APP_QUIT_MAPMODS, MnNone{},
  125.  
  126.             /* help desc, help topic, extra  */
  127.  
  128.                         HelpNone {}, HelpNone{}, {}
  129.         },
  130.         }
  131. };
  132.  
  133.